# 停止已运行的Python和Node进程
taskkill /F /IM python.exe 2>$null
taskkill /F /IM node.exe 2>$null

# 启动Django后端
Start-Process -NoNewWindow powershell -ArgumentList "cd backend; python manage.py runserver"

# 启动Vue前端
Start-Process -NoNewWindow powershell -ArgumentList "cd frontend; npm run dev"

Write-Host "服务已启动:"
Write-Host "后端: http://localhost:8000"
Write-Host "前端: http://localhost:5173" 